import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

// 公共路由
export const constantRoutes = [
  {
    path: '/',
    component: (resolve) => require(['@/views/home'], resolve),
  },
  {
    path: '/home',
    component: (resolve) => require(['@/views/home'], resolve),
  },
  {
    path: '/water-drop-effect',
    component: (resolve) => require(['@/views/waterDropEffect'], resolve),
  },
  {
    path: '/dinosaur-run',
    component: (resolve) => require(['@/views/dinosaurRun'], resolve),
  },
]

export default new Router({
  mode: 'hash', // 去掉url中的#
  routes: constantRoutes,
})